package app.v1.yd.domain.pojo;

import app.common.ar.Ar;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.feizns.quickstart.ddl.annotation.Comment;
import com.gitee.feizns.quickstart.mybatis.plus.builder.annotation.Equal;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 仓库
 * @author feizns
 * @since 2023/9/11
 */
@Entity
@Getter
@Setter
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName(autoResultMap = true)
@NoArgsConstructor
@Comment("仓库")
public class YdWarehouse extends Ar<YdWarehouse> {

    /**
     * 仓库编号
     */
    @Equal
    @Comment("仓库编号")
    private String no;

    /**
     * 仓库名称
     */
    @Equal
    @Comment("仓库名称")
    private String name;

    /**
     * 已开启
     */
    @Comment("是否已开启")
    @Column(columnDefinition = "BIT DEFAULT 0")
    private Boolean enabled;

}
